package com.andnnl.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by chenss on 2019/6/27.
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    public ModelAndView index(){
        ModelAndView view=new ModelAndView("/index.html");
        return view;
    }
    @RequestMapping("/index2")
    public ModelAndView index2(){
        ModelAndView view=new ModelAndView("/index2.html");
        return view;
    }
}
